package com.wangnian.wangcai.controller.advice;

import java.io.Serializable;

public class Result implements Serializable {

    private static final long serialVersionUID = 1L;

    private boolean status;
    private Object content;

    public static Result success(Object content) {
        Result result = new Result();
        result.setContent(content);
        result.setStatus(true);
        return result;
    }

    public static Result fail(Object content) {
        Result result = new Result();
        result.setContent(content);
        result.setStatus(false);
        return result;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
